﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 总秒数转天时分秒
{
    class Program
    {
        static void Main(string[] args)
        {
            //107653秒是几天几小时几分钟几秒 

            int minSec = 60;
            int hourSec = minSec * 60;
            int daySec = hourSec * 24;

            int totalSec = 107653;

            int day = totalSec / daySec;//总天数
            int sec = totalSec % daySec;//剩下的秒数

            int hour= sec / hourSec;//小时
            sec = sec % hourSec;//剩下的秒数

            int min = sec / minSec; //分钟
            sec = sec % minSec;//秒

            Console.WriteLine($"{totalSec }是{day}天{hour}小时{min}分钟{sec}秒");

        }
    }
}
